import  {api} from  "./api.js"

export  const  get =(url,data,header)=>{
	console.log(header);
	return  uni.request({
		url:api+url,
		data,
		method:"get",
		header
	})
} 

export  const  post = (url,data,header)=>{
	return  uni.request({
		url:api+url,
		data,
		method:"post",
		header
	})
	
}
export  const  put = (url,data,header)=>{
	return  uni.request({
		url:api+url,
		data,
		method:"put",
		header
	})
	
}